import 'package:black_movice/api/api_urls.dart';
import 'package:black_movice/net/http_client.dart';

const movieMockList = {
  "code": 200,
  "msg": "获取成功",
  "data": [
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 8.5,
      "id": 1
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 7.8,
      "id": 2
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 9.0,
      "id": 3
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 6.5,
      "id": 4
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 7.2,
      "id": 5
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 8.1,
      "id": 6
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 7.6,
      "id": 7
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 8.8,
      "id": 8
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 7.0,
      "id": 9
    },
    {
      "cover": "assets/videoImg/conver.jpeg",
      "name": "汽车总动员",
      "rating": 8.3,
      "id": 10
    }
  ]
};
// 设置电影简易列表的模拟相应
void setupMoviceListMock(HttpClient httpClient) {
  httpClient.setUseMock(true);
  httpClient.setupMockResponse(ApiUrls.moviceList, movieMockList,
      requestType: 'post', delaySeconds: 1);
}
